<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>制造计划</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../res/css/layui.css" media="all">
<link rel="stylesheet" href="../../res/css/cst/snproduction.css"
	media="all">
<script type="text/javascript" src="../../res/js/jquery-1.11.2.min.js"></script>
</head>
<body>

	<div class="demoTable" style="margin-left: 20px; margin-top: 10px;">
		商品名称:
		<div class="layui-inline">
			<input class="layui-input" style="height: 32px;" id="comName" maxlength="7" placeholder="请输入 商品名称:"
				autocomplete="off">
		</div>
		
		状态查询:
		<from class="layui-form">
		<div class="layui-inline">
			<select lay-filter="aihao" id="StateSelect"
				style="width: 100px; border: 1px solid red;">
				<option value="">====请选择====</option>
				<option value="0">未完成</option>
				<option value="1">已完成</option>
			</select>
		</div>
		</from>

		<button class="layui-btn layui-btn-sm" data-type="reload"
			id="selectButton">搜索</button>
	</div>

	<table class="layui-table"
		lay-data="{ url:'../../snmanufacture/findAll.action', page:true, id:'manuTable'}"
		lay-filter="manuTableDemo">
		<thead>
			<tr>
				<th lay-data="{field:'comName',align:'center'}">商品名称</th>
				<th lay-data="{field:'smNumber', align:'center'}">预计生产数量</th>
				<th lay-data="{field:'smStocks', align:'center'}">已完成数量</th>
				<th lay-data="{field:'smUndone', align:'center'}">未完成数量</th>
				<th
					lay-data="{field:'smState', align:'center', sort: true,toolbar: '#manState'}">制作状态</th>
				<th lay-data="{field:'oper', align:'center'}">生产次数</th>
			</tr>
		</thead>
	</table>
	<script type="text/javascript" id="manState">
	{{# if(d.smState == 0) { }}
		<div>未完成</div>
	{{# } else if(d.smState == 1){}}
		<div>已完成</div>
	{{# }}}
	</script>
	<script src="../../res/layui.all.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../res/js/cst/snmanufacture.js"></script>
</body>
</html>